home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / auror300.zip / HELPLANG.AML < prev    next >
Text File  |  1996-07-17  |  3KB  |  132 lines

  1. //--------------------------------------------------------------------
  2. // HELPLANG.AML
  3. // Language Reference Help Topics, (C) 1993-1996 by nuText Systems
  4. //
  5. // This macro displays a popup menu of Language Reference topics.
  6. // Selecting a topic will display the Language Reference and position
  7. // the cursor to the selected topic.
  8. //
  9. // Usage:
  10. //
  11. // Select this macro from the Macro List (on the Macro menu), or run it
  12. // from the macro picklist <shift f12>.
  13. //
  14. // This macro can also be run by selecting Language Reference Topics
  15. // from the Help menu.
  16. //--------------------------------------------------------------------
  17.  
  18. // compile time macros and function definitions
  19. include bootpath "define.aml"
  20.  
  21. // create an inline help topics buffer
  22. databuf "helplang"
  23.   "Arithmetic Operators"
  24.   "Arrays"
  25.   "Assignment Statement"
  26.   "Bitwise Operators"
  27.   "Bookmarks"
  28.   "Buffers"
  29.   "Case Statement"
  30.   "Command Line Macros"
  31.   "Comments"
  32.   "Compilation and Execution Functions"
  33.   "Constant Statement"
  34.   "Control Statements"
  35.   "Conversions"
  36.   "Current Event Object"
  37.   "Cursors"
  38.   "Define Statement"
  39.   "Desktop"
  40.   "Dos Shell Functions"
  41.   "Events"
  42.   "#Exec Statement"
  43.   "Expressions"
  44.   "External Macros"
  45.   "File Handling Functions"
  46.   "File Manager Functions"
  47.   "Folds"
  48.   "Function Calls"
  49.   "Function Definitions"
  50.   "Function Return Values"
  51.   "Function Types"
  52.   "Identifiers"
  53.   "If and If? Statements"
  54.   "Include Statement"
  55.   "Internal Macros"
  56.   "Introduction"
  57.   "Iterative Statements"
  58.   "Key Event Names"
  59.   "Key Macro Functions"
  60.   "Keyboard"
  61.   "Library Object Hierarchies"
  62.   "Logical Operators"
  63.   "Macro Types"
  64.   "Marks"
  65.   "Menus"
  66.   "Miscellaneous Functions"
  67.   "Mouse Event Names"
  68.   "Mouse"
  69.   "Numbers"
  70.   "Object Definitions"
  71.   "Object Functions"
  72.   "Object Inheritance"
  73.   "Object Statements and Functions"
  74.   "Objects and Remote Access"
  75.   "Objects"
  76.   "On-Event Functions"
  77.   "Operator Precedence"
  78.   "Other Control Statements"
  79.   "Overview"
  80.   "Passing Arguments to Functions"
  81.   "Passing Variables by Reference"
  82.   "Primary Editing Functions"
  83.   "Prompt History"
  84.   "Prompts and Dialog Boxes"
  85.   "Public vs. Private"
  86.   "Regular Expression Searching"
  87.   "Relational Operators"
  88.   "Reserved Words"
  89.   "Search and Replace"
  90.   "Spaces"
  91.   "String Functions"
  92.   "String Operators"
  93.   "Strings"
  94.   "Syntax Highlighting"
  95.   "Syntax"
  96.   "System Functions"
  97.   "Timers"
  98.   "True and False"
  99.   "Undo and Redo"
  100.   "User Defined Events"
  101.   "Variable Declarations"
  102.   "Variables"
  103.   "Video Functions"
  104.   "Windows"
  105. end
  106.  
  107. // name the buffer so the menu position can be remembered
  108. setbufname "helplang"
  109.  
  110. // display the buffer in a popup menu and get the topic selected
  111. topic = popup (getcurrbuf) "Language Reference Topics" 35
  112.  
  113. // destroy the help topics buffer
  114. destroybuf
  115.  
  116. // display the selected topic
  117. if topic then
  118.   helpfile = getbootpath + "doc\\" +
  119.                 (if? topic [1:3] == "Reg" "regexp" "language") + ".dox"
  120.   if file? helpfile then
  121.     open helpfile
  122.     // make read/only
  123.     bufferflag '+r'
  124.     gotopos 1 1
  125.     if find topic + '' then
  126.       send "onfound"  length topic
  127.     end
  128.   else
  129.     msgbox helpfile + " not found."
  130.   end
  131. end
  132.